<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
	print $this->headBase();
    print $this->headMeta();
    print $this->headTitle();
    print $this->headScript();
    print $this->headLink();
    print $this->headStyle();
?>
</head>

<body>
   <div id="wrapper" class="home">
   		<?php print $this->partial('_partial/head.phtml')?>

		<div id="loader">Wczytuję, prosze czekać..</div>
   		
        <div id="container">
        
        	<div class="column c66">
                <div id="map-container" class="pink">
                    <div class="head">
                        <h3 class="h-img lokalizacje">Lokalizacje</h3>
                        <form action="" method="get" id="mapForm">
                        	<label>idź do</label>
							<input type="text" class="in-text" id="autocomplete-adres" name="adres" value="" />
							<input type="image" class="submit" value="szukaj adresu" />
						</form>
                    </div>
                    <!-- Mapy Googla -->
					<div id="googleMaps"></div>

                    <b class="lt"></b><b class="lb"></b><b class="rt"></b><b class="rb"></b>
                </div>
			
				<div class="inner">
					<p class="info"><span class="icon"></span>Powiększ mape aby zobaczyć więcej gabinetów</p>
				</div>

                <?php print $this->catalogPremium()
							 ->setRandom(false)
							 ->setDistrict($this->district)
							 ->setRowCount(26)
							 ->render('_partial/catalogListPremium.phtml')?>
							 
				<?php print $this->inlineScript()->captureStart()?>
				var G_MAP_LAT = <?php print @$this->row['lat'];?>;
				var G_MAP_LNG = <?php print @$this->row['lng'];?>;
	
				showAddress('<?php print $this->escape(str_replace(array('-','"',"'"), ' ', $this->district)) ?>', 15);
				<?php print $this->inlineScript()->captureEnd()?>
                
                <?php print $this->layout()->content ?>
                 
            </div>
            <div class="column c33 sidebar">
            	<div class="inner">
            		<?php print $this->catalogType()
	        						 ->render('_partial/catalogType.phtml')?>

	            	<h3 class="h-img dzielnice">Wyszukaj w swojej dzielnicy</h3>
	            	<?php 
						/* @var $cont Zend_Navigation_Container */
						$cont = $this->catalogDistrictNavigation()->getContainer();
						if ($page = $cont->findBy('url', $this->urlParams('url'))) {
							$page->setActive(true);
						}
						print $this->navigation($cont);
					?>
	            
				</div>
            </div>
        </div>

        <div id="footer">
        	<?php print $this->partial('_partial/foot.phtml')?>
        </div>

        <div id="bottom">
        	<?php print $this->partial('_partial/bottom.phtml')?>
        </div>
   </div>
</body>

<?php print htmlspecialchars_decode($this->inlineScript())?>
</html>